﻿Imports SFDL.LoaderExtensions.SFDLSessionEnums

Public Class SFDLSession

    Private _var_session_state As SFDLSessionState
    Private _var_sfdl_session_name As String
    Private _var_sfdl_file As SFDL.File.SFDLFile
    Private _var_sfdl_file_name As String
    Private _var_saved_checked_items As New List(Of OLV_Item)
    Private _var_time_started As Date
    Private _var_time_stopped As Date
    Private _var_olv_item_list As New List(Of OLV_Item)
    Private _var_active_threads As Integer = 0
    Private _var_group_state As GroupState = GroupState.Expanded
    Private _var_unrarchains As New List(Of UnRARChain)

    Public Property SavedCheckedItems As List(Of OLV_Item)
        Set(value As List(Of OLV_Item))
            _var_saved_checked_items = value
        End Set
        Get
            Return _var_saved_checked_items
        End Get
    End Property

    Public Property OLVItemList As List(Of OLV_Item)
        Set(value As List(Of OLV_Item))
            _var_olv_item_list = value
        End Set
        Get
            Return _var_olv_item_list
        End Get
    End Property


    Public Property SessionState As SFDLSessionState
        Set(value As SFDLSessionState)
            _var_session_state = value
        End Set
        Get
            Return _var_session_state
        End Get
    End Property

    Public Property SFDLSessionName As String
        Set(value As String)
            _var_sfdl_session_name = value
        End Set
        Get
            Return _var_sfdl_session_name
        End Get
    End Property

    Public Property SFDLFile As SFDL.File.SFDLFile
        Set(value As SFDL.File.SFDLFile)
            _var_sfdl_file = value
        End Set
        Get
            Return _var_sfdl_file
        End Get
    End Property

    Public Property SFDLFileName As String
        Set(value As String)
            _var_sfdl_file_name = value
        End Set
        Get
            Return _var_sfdl_file_name
        End Get
    End Property

    Public Property TimeDownloadStarted As Date
        Set(value As Date)
            _var_time_started = value
        End Set
        Get
            Return _var_time_started
        End Get
    End Property

    Public Property TimeDownloadStopped As Date
        Set(value As Date)
            _var_time_stopped = value
        End Set
        Get
            Return _var_time_stopped
        End Get
    End Property

    Public Property ActiveThreads As Integer
        Set(value As Integer)
            _var_active_threads = value
        End Set
        Get
            Return _var_active_threads
        End Get
    End Property

    Public Property GroupState As GroupState
        Set(value As GroupState)
            _var_group_state = value
        End Set
        Get
            Return _var_group_state
        End Get
    End Property

    Public Property UnRarChains As List(Of UnRARChain)
        Set(value As List(Of UnRARChain))
            _var_unrarchains = value
        End Set
        Get
            Return _var_unrarchains
        End Get
    End Property

End Class
